﻿using Jay.Sc2.Bof.Lib.State;

namespace Jay.Sc2.Bof.Lib.Action.Zerg
{
	public class ActionProduceOverlord : ActionProduceFromLarva
	{
		public static ActionProduceOverlord Instance = new ActionProduceOverlord();
		private ActionProduceOverlord() : base(25, 100, 0, 0) { }
		public override bool HaveTechnology(IBuildOrder bo) { return true; }
		public override void OnProductionStarted(IBuildOrder bo)
		{
			ZergState state = bo.State as ZergState;
			state.m_SupplyBuilding+=8;
		}
		public override void OnProductionFinished(IBuildOrder bo)
		{
			ZergState state = bo.State as ZergState;
			state.Overlord++;
			state.Supply += 8;
			state.m_SupplyBuilding -= 8;
		}
		public override string EventName { get { return "ActionSpawnOverlord"; } }
	}
}
